package br.com.inovati.linkers.services.impl;

import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

import br.com.inovati.linkers.entity.Telefones;
import br.com.inovati.linkers.services.TelefoneServiceRemote;

@Stateless
public class TelefoneServiceImpl implements TelefoneServiceRemote {

	@PersistenceContext(unitName = "linkers")
	private EntityManager em;

	@Override
	public Telefones inserir(Telefones telefone) {
		em.persist(telefone);
		return telefone;
	}
}